package info.nene_loveplus.controller.admin;

import info.nene_loveplus.meta.LinkMeta;
import info.nene_loveplus.model.Link;

import java.util.List;

import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

public class LinkController extends AbstractAdminController {

	@Override
	public Navigation doRun() {

		List<Link> list = Datastore.query(Link.class)
				.sort(LinkMeta.get().sortOrder.asc.getSort()).asList();
		requestScope("list", list);

		return forward("link.jsp");
	}
}
